import request from '@/utils/request'

// 查询机场跑道天气实况列表
export function listWeatherdetails(query) {
  return request({
    url: '/dyn/weatherdetails/list',
    method: 'get',
    params: query
  })
}

// 查询机场跑道天气实况详细
export function getWeatherdetails(weatherid) {
  return request({
    url: '/dyn/weatherdetails/' + weatherid,
    method: 'get'
  })
}

// 新增机场跑道天气实况
export function addWeatherdetails(data) {
  return request({
    url: '/dyn/weatherdetails',
    method: 'post',
    data: data
  })
}

// 修改机场跑道天气实况
export function updateWeatherdetails(data) {
  return request({
    url: '/dyn/weatherdetails',
    method: 'put',
    data: data
  })
}

// 删除机场跑道天气实况
export function delWeatherdetails(weatherid) {
  return request({
    url: '/dyn/weatherdetails/' + weatherid,
    method: 'delete'
  })
}
